package sort

object TestsortWith {

  def main(args: Array[String]): Unit = {
    val tuples = List((4.00, 5), (3.56, 2), (6.85, 1), (9.56, 17), (1.56, 9), (0.56, 4), (-3.56, 2), (5.56, 1))

    val head = tuples.sortWith(_._1 < _._1).head

    println(head._1 + "***" + head._2)
  }

}
